<!--
 * @Author: 亚亚
-->
<!--
 * @Author: 亚亚
-->
<template>
  <div class="layout-template" :class="paddingFlag ? 'p-20px' : 'p-0'">
    <header>
      <div :class="infoShow ? 'm-b-20px' : ''">
        <slot name="info"></slot>
      </div>
      <slot name="btnGroup"></slot>
      <slot name="serachGroup"></slot>
    </header>
    <main m-t-20px>
      <slot name="main"></slot>
    </main>
  </div>
</template>

<script lang="ts" setup>
defineProps({
  paddingFlag: {
    type: Boolean,
    default: true
  },
  searchShow: {
    type: Boolean,
    default: true
  },
  infoShow: {
    type: Boolean,
    default: true
  }
})
</script>